package com.bishe.psy.service;


import com.bishe.psy.model.StuUser;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: L
 * Date: 2024-03-24
 * Time: 17:24
 */

//新增用户
public interface IStuUserService {

    //新增用户
    void createStuUser(StuUser stuuser);

    //根据用户名查询用户
    StuUser selectByUsername(String username);

    //登录
    StuUser login(String username, String password);

    //根据id查询用户信息
    StuUser selectByPrimaryKey(Long id);

    //修改个人信息
    void modifyStuInfo(StuUser stuUser);

    //修改密码
    void modifyPassword(Long id,String oldPassword,String newPassword);

    //查询所有学生账号
    List<StuUser> selectAllInfo();

    //修改账号状态
    void updateDeleteStateByUsername(String username);

}
